package cn.wh.org.mapper;

import cn.wh.basic.query.BaseQuery;
import cn.wh.org.domain.Shop;
import cn.wh.basic.mapper.BaseMapper;
import cn.wh.org.domain.ShopAuditLog;
import cn.wh.org.query.ShopAuditLogQuery;
import cn.wh.org.vo.ShopVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yaosang
 * @since 2022-06-12
 */
public interface ShopMapper extends BaseMapper<Shop> {

    //根据店铺名字查询店铺
    Shop loadByName(String name);

    //查询报表
    List<ShopVo> queryEcharts();

    //批量新增
    void batchInsert(List<Shop> list);

    //查询当前页的数据
    List<ShopAuditLog> queryData(ShopAuditLogQuery query);
}
